import React from 'react'
import "./ChoiceItem.less"
import ChoiceME from "@/assets/images/user/choice_me.png"
interface Iprops {
    data: Ioption,
    ischeck: boolean,
    xuan: (v: string) => void
}
export default function ChoiceItem(props: Iprops) {
    let { key, value } = props.data
    let { ischeck, xuan } = props
    return (
        <div className='choiceitem' onClick={() => {
            xuan(key)
        }}>
            <div className="xuan">
                <img style={{ display: ischeck ? "block" : "none" }} src={ChoiceME} alt="" />
            </div>
            <div>{key}、</div>
            <div>{value}</div>
        </div>
    )
}
